import {
	request

} from '../utils/request'


/*头条回传 */
export function toutiaohuichuan(data) {
	return request({
		url: "/api/track/toutiao",
		method: "post",
		data: data
	})
}
/*福利分享成功 */
export function sharesuccess(data) {
	return request({
		url: "/api/welfare/complete",
		method: "post",
		data: data
	})
}
/*回复评论 */
export function huifupinglun(data) {
	return request({
		url: "/api/bookreview/addreplies",
		method: "post",
		data: data
	})
}
/*添加评论数量 */
export function addpinglunnum(data) {
	return request({
		url: "/api/bookreview/good",
		method: "post",
		data: data
	})
}

/*换绑 */
export function tabbang(data) {
	return request({
		url: "/api/user/changebindmobile",
		method: "post",
		data: data
	})
}



/*取消登录 */
export function logout(data) {
	return request({
		url: "/api/user/removebindmobile",
		method: "post",
		data: data
	})
}


/*取消自动 */
export function calauto(data) {
	return request({
		url: "/api/user/cancel",
		method: "post",
		data: data
	})
}


/*整本购买 */
export function zhengbenbuy(data) {
	return request({
		url: "/api/chapter/allbookbuy",
		method: "post",
		data: data
	})
}

/*确定绑定 */
export function quedingbang(data) {
	return request({
		url: "/api/user/againbindmobile",
		method: "post",
		data: data
	})
}

/*分享书籍完成 */
export function shareok(data) {
	return request({
		url: "/api/welfare/complete",
		method: "post",
		data: data
	})
}
/*分享获取书籍 */
export function getshare(data) {
	return request({
		url: "/api/share/index",
		method: "post",
		data: data
	})
}
/*获取推广信息 */
export function gettuiguanginfo(data) {
	return request({
		url: "/api/spread/info",
		method: "post",
		data: data
	})
}
/*优惠券 */
export function quan(data) {
	return request({
		url: "/api/coupon/index",
		method: "post",
		data: data
	})
}

/*已订购书籍 */
export function dinggou(data) {
	return request({
		url: "/api/user/ordered",
		method: "post",
		data: data
	})
}
/*章节购买 */
export function zhangjiebuy(data) {
	return request({
		url: "/api/chapter/buy",
		method: "post",
		data: data
	})
}
/*底部信息 */
export function bottominfo(data) {
	return request({
		url: "/api/index/footer",
		method: "post",
		data: data
	})
}
/*首页猜你喜欢 */
export function cainixihuan(data) {
	return request({
		url: "/api/index/guesslike",
		method: "post",
		data: data
	})
}
/*注销验证码 */
export function zhuxiaocode(data) {
	return request({
		url: "/api/user/checkedcode",
		method: "post",
		data: data
	})
}


/*注销 */
export function zhuxiao(data) {
	return request({
		url: "/api/user/accountcancel",
		method: "post",
		data: data
	})
}

/*活动人数 */
export function addrenshu(data) {
	return request({
		url: "/api/activity/click",
		method: "post",
		data: data
	})
}

/*书币获得记录 */
export function getshubijilu(data) {
	return request({
		url: "/api/user/zblog",
		method: "post",
		data: data
	})
}
/*充值记录 */
export function chognzhijilu(data) {
	return request({
		url: "/api/user/paylog",
		method: "post",
		data: data
	})
}

/*领取福利 */
export function lingfuli(data) {
	return request({
		url: "/api/welfare/receive",
		method: "post",
		data: data
	})
}
/*校验是否已充值 */
export function checkorder(data) {
	return request({
		url: "/api/pay/checkorder",
		method: "post",
		data: data
	})
}

/*绑定手机 */
export function bindphone(data) {
	return request({
		url: "/api/user/bindmobile",
		method: "post",
		data: data
	})
}

/*获取验证 */
export function getcode(data) {
	return request({
		url: "/api/user/getcode",
		method: "post",
		data: data
	})
}
/*签到成功 */
export function qiandao(data) {
	return request({
		url: "/api/welfare/signin",
		method: "post",
		data: data
	})
}

/*活动中心 */
export function huodongcenter(data) {
	return request({
		url: "/api/activity/index",
		method: "post",
		data: data
	})
}
/*启动页面 */
export function startpage(data) {
	return request({
		url: "/api/index/homepage",
		method: "post",
		data: data
	})
}

/*自动购买 */
export function autobuy(data) {
	return request({
		url: "/api/user/autobuy",
		method: "post",
		data: data
	})
}


/*章节 */
export function zhang(data) {
	return request({
		url: "/api/chapter/index",
		method: "post",
		data: data
	})
}
/*充值 */
export function paypage(data) {
	return request({
		url: "/api/pay/index",
		method: "post",
		data: data
	})
}
/*支付宝付款 */
export function alipay(data) {
	return request({
		url: "/api/pay/alipay",
		method: "post",
		data: data
	})
}
/*微信付款 */
export function wechatpay(data) {
	return request({
		url: "/api/pay/wxpay",
		method: "post",
		data: data
	})
}
/*书架删除 */
export function casedel(data) {
	return request({
		url: "/api/bookshelf/del",
		method: "post",
		data: data
	})
}
/*书架置顶 */
export function casetop(data) {
	return request({
		url: "/api/bookshelf/settop",
		method: "post",
		data: data
	})
}
/*活动 */
export function huodong(data) {
	return request({
		url: "/api/activity/latest",
		method: "post",
		data: data
	})
}
/*底部弹窗 */
export function latest_ad(data) {
	return request({
		url: "/api/activity/latest_ad",
		method: "post",
		data: data
	})
}
/*添加评论 */
export function addpinglun(data) {
	return request({
		url: "/api/bookreview/add",
		method: "post",
		data: data
	})
}
/*评论页面 */
export function pinglun(data) {
	return request({
		url: "/api/bookreview/index",
		method: "post",
		data: data
	})
}

/*消费记录 */
export function xiaofei(data) {
	return request({
		url: "/api/user/osale",
		method: "post",
		data: data
	})
}
/*分类 */
export function fenlei(data) {
	return request({
		url: "/api/category/index",
		method: "post",
		data: data
	})
}

/*关于我们 */
export function guanyuwomen(data) {
	return request({
		url: "/api/index/about",
		method: "post",
		data: data
	})
}
/*热门推荐 */
export function tuijian(data) {
	return request({
		url: "/api/index/hot",
		method: "post",
		data: data
	})
}

/*搜索结果 */
export function searchresult(data) {
	return request({
		url: "/api/search/results",
		method: "post",
		data: data
	})
}
/*搜索页 */
export function searchpage(data) {
	return request({
		url: "/api/search/index",
		method: "post",
		data: data
	})
}
/*意见反馈 */
export function yijian(data) {
	return request({
		url: "/api/user/feceback",
		method: "post",
		data: data
	})
}

/*阅读 */
export function readbook(data) {
	return request({
		url: "/api/chapter/read",
		method: "post",
		data: data
	})
}

/*书籍详情 */
export function bookinfo(data) {
	return request({
		url: "/api/book/index",
		method: "post",
		data: data
	})
}
/*是否在书架上 */
export function isoncase(data) {
	return request({
		url: "/api/bookshelf/isshelf",
		method: "post",
		data: data
	})
}

/*书城 */
export function shucheng(data) {
	return request({
		url: "/api/index/index",
		method: "post",
		data: data
	})
}

/*排行榜 */
export function paihang(data) {
	return request({
		url: "/api/index/toplist",
		method: "post",
		data: data
	})
}
/*浏览记录 */
export function liulan(data) {
	return request({
		url: "/api/history/index",
		method: "post",
		data: data
	})
}

/*福利 */
export function fuli(data) {
	return request({
		url: "/api/welfare/index",
		method: "post",
		data: data
	})
}
/**书架列表 */
export function shujialist(data) {
	return request({
		url: "/api/bookshelf/index",
		method: "post",
		data: data
	})
}
/**加入书架 */
export function addshujia(data) {
	return request({
		url: "/api/bookshelf/add",
		method: "post",
		data: data
	})
}
/**限时免费 */
export function xianmian(data) {
	return request({
		url: "/api/index/free",
		method: "post",
		data: data
	})
}
/**用户注册 */
export function zhuce(data) {
	return request({
		url: "/api/user/reg",
		method: "post",
		data: data
	})
}
/**个人中心 */
export function mine(data) {
	return request({
		url: "/api/user/index",
		method: "post",
		data: data
	})
}
/**保存regid */
export function savetoken(data) {
	return request({
		url: "/api/user/savetoken",
		method: "post",
		data: data
	})
}
/** 用户加桌 */
export function desktop(data) {
	return request({
		url: "/api/user/desktop",
		method: "post",
		data: data
	})
}
